package com.heima.ssm.service.impl;

import com.heima.ssm.dao.IPermissionDao;
import com.heima.ssm.pojo.Permission;
import com.heima.ssm.service.IPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author Penguin
 * @create Date 2021/5/6  Time 20:03
 */
@Service
@Transactional
public class PermissionServiceImpl implements IPermissionService {

    @Autowired
    private IPermissionDao permissionDao;

    @Override
    public List<Permission> findAll() {
        return permissionDao.findAll();
    }

    @Override
    public void add(Permission per) {
        permissionDao.add(per);
    }
}
